#include "biblioteca.h"
#define MAX 100

int literais(char string[]){
	int estado = 0, cont = 0;
	char token[MAX];
	char c;
	
	while(estado == 0){
		if(buffer.ind_buffer > 49) encherBuffer();
		
		c = buffer.buff[buffer.ind_buffer];
		//printf("lido: %c\n",c);
		if(c == '\'') {
			estado = 1;
			buffer.ind_buffer++;
		}
		else{
			token[cont] = lerChar();
			cont++;
		}
	}
	
	token[cont] = '\0';
    strcpy(string, token);
	fprintf(saida, "Literal '%s' identificado\n", token);
	return 1;
}
